package org.duiduo.domain;

import lombok.*;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
public class User {
    private int id;
    private String username;
    private String password;
    private Date birthday;

    //描述的是当时用户存在哪些订单
    private List<Order> orderList;

    //描述的是当时用户具备哪些角色
    private List<Role> roleList;
}
